import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

const routes = [
  {
    path: '/',
    redirect: '/WordCloud'
  },
  {
    path: '/WordCloud',
    name: '3D词云',
    component: () => import('../views/WordCloud/index.vue')
  }
];

export const menuRoute = routes.filter(route => route.name && route.path && route.component);

export default new Router({
  routes
});
